import QtQuick 2.0
import CustomComponents 1.0
import QtMultimedia 5.0
Rectangle {
    width: 1024
    height: 780
    color: "black"
    MouseArea {
        anchors.fill: parent
        onClicked: {

        }
    }
    Rectangle{
        width: parent.width/2
        height: parent.height/2
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter:  parent.verticalCenter
        //anchors.fill: parent

        anchors.margins: 50
        Image {
            id:image
            smooth: true
            anchors.fill: parent
            anchors.margins: 20
            cache: false
        }
        MouseArea {
            anchors.fill: parent
            onClicked: {
                image.source="";
                image.source="image://a/q"
                Qt.quit()
                console.log("Ck")
            }
        }
    }
    CameraB{
        id:camera
        interval: 100
        onOut: {
            console.log("1")
            image.source=""; image.source="image://a/q"
        }
    }
}
